home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / ResourceLib / ResourceConstantsLib.h next >
Encoding:
C/C++ Source or Header  |  1994-01-16  |  7.1 KB  |  310 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3. /* Standard resources used by the libraries. Resource IDs 128 through 511 are
  4.     reserved for the libraries. Every definition of a resource ID is preceded
  5.     with the letters "RL", which stands for "Resource Library". This is followed
  6.     by the type of the resource, or, in the case of 'STR#' resources, only
  7.     by the letter "S". Menus are preceded by the letter "M", dialogs by the 
  8.     letter "D". */
  9.  
  10. /* 'STR#' resources */
  11. enum {
  12.     RLS_ERR = 128,                /* error strings */
  13.     RLS_ALERT,                    /* alert strings */
  14.     RLS_FILE,                    /* names of files and folders */
  15.     RLS_SF,                        /* prompts for standard file put dialogs */
  16.     RLS_BUSY,                    /* progress dialog strings */
  17.     RLS_BUTTON,                    /* alert and dialog buttons */
  18.     RLS_UNDO,                    /* undo strings for edit menu */
  19.     __RLS_UNUSED__,            /* unused resource */
  20.     RLS_PRINTING,                /* printing related strings */
  21.     RLS_ERRFMT,                    /* error format strings */
  22.     RLS_HELP,                    /* help topics */
  23.     RLS_FINDER,                    /* finder messages */
  24.     RLS_UNITS_SINGULAR,        /* units of measure (singular) */
  25.     RLS_UNITS_PLURAL,            /* units of measure (plural) */
  26.     RLS_LAST
  27. };
  28.  
  29. /* error format strings */
  30. enum {
  31.     RLS_ERRFMT_ACTION = 1,
  32.     RLS_ERRFMT_OPERATION,
  33.     RLS_ERRFMT_OPERATION_ON,
  34.     RLS_ERRFMT_OBJECT,
  35.     RLS_ERRFMT_EXPLANATION,
  36.     RLS_ERRFMT_OSERR,
  37.     RLS_ERRFMT_LAST
  38. };
  39.  
  40. /* error strings */
  41. enum {
  42.     RLS_ERR_OPEN = 1,
  43.     RLS_ERR_CLOSE,
  44.     RLS_ERR_READ,
  45.     RLS_ERR_WRITE,
  46.     RLS_ERR_CREATE,
  47.     RLS_ERR_DELETE,
  48.     RLS_ERR_PRINT,
  49.     RLS_ERR_PAGE_SETUP,
  50.     RLS_ERR_FIND,
  51.     RLS_ERR_INSERT,
  52.     RLS_ERR_ADD,
  53.     RLS_ERR_REMOVE,
  54.     RLS_ERR_INSTALL,
  55.     RLS_ERR_UPDATE,
  56.     RLS_ERR_MODIFY,
  57.     RLS_ERR_REPLACE,
  58.     RLS_ERR_SCAN,
  59.     RLS_ERR_LAST
  60. };
  61.  
  62. /* alert strings */
  63. enum {
  64.     RLS_ALERT_SYSTEM = 1,        /* application requires newer system */
  65.     RLS_ALERT_SYSTEM_FEATURE,    /* feature requires newer system */
  66.     RLS_ALERT_CLOSING,            /* save changes before closing? */
  67.     RLS_ALERT_QUTTING,            /* save changes before quitting? */
  68.     RLS_ALERT_REVERT,                /* really revert file? */
  69.     RLS_ALERT_DAMAGED,            /* damaged application */
  70.     RLS_ALERT_MEMORY_CLOSING,    /* close because memory is low */
  71.     RLS_ALERT_MEMORY_LOW,        /* memory is low */
  72.     RLS_ALERT_MEMORY_VERY_LOW, /* memory is very low */
  73.     RLS_ALERT_MEMORY_CRITICAL, /* memory is critically low */
  74.     RLS_ALERT_TRUNCATED,            /* document was truncated */
  75.     RLS_ALERT_LAST
  76. };
  77.  
  78. /* files used by application */
  79. enum {
  80.     RLS_FILE_PREFERENCES = 1,    /* preferences file */
  81.     RLS_FILE_UNTITLED,            /* untitled document */
  82.     RLS_FILE_APPLICATION,        /* name of application */
  83.     RLS_FILE_UNTITLED_FOLDER,    /* untitled folder */
  84.     RLS_FILE_PREFERENCES_FOLDER,/* preferences folder (for system 6.0) */
  85.     RLS_FILE_DEBUG,                /* debug file/window */
  86.     RLS_FILE_LAST
  87. };
  88.  
  89. /* standard put file prompts */
  90. enum {
  91.     RLS_SF_SAVE = 1,                /* save as: */
  92.     RLS_SF_FOLDER,                    /* destination folder: */
  93.     RLS_SF_SELECT_FOLDER,        /* select folder: */
  94.     RLS_SF_SELECT_FILE,            /* select file: */
  95.     RLS_SF_SELECT_FOLDERS,        /* select folders: */
  96.     RLS_SF_SELECT_FILES,            /* select files: */
  97.     RLS_SF_SELECT_FILE_OR_FOLDER, /* select file or folder: */
  98.     RLS_SF_SELECT_FILES_AND_FOLDERS, /* select files and folders: */
  99.     RLS_SF_LAST
  100. };
  101.  
  102. /* periodic event loop strings */
  103. enum {
  104.     RLS_BUSY_READ = 1,        /* reading file */
  105.     RLS_BUSY_WRITE,            /* writing file */
  106.     RLS_BUSY_COPYING,            /* copying file */
  107.     RLS_BUSY_CONCATENATING,    /* concatenating file */
  108.     RLS_BUSY_SCANNING,        /* scanning file */
  109.     RLS_BUSY_COUNTING_FILES, /* counting files */
  110.     RLS_BUSY_LAST
  111. };
  112.  
  113. /* alert and dialog button strings */
  114. enum {
  115.     RLS_BUTTON_YES = 1,
  116.     RLS_BUTTON_NO,
  117.     RLS_BUTTON_CANCEL,
  118.     RLS_BUTTON_STOP,
  119.     RLS_BUTTON_PAUSE,
  120.     RLS_BUTTON_CONTINUE,
  121.     RLS_BUTTON_ADD,
  122.     RLS_BUTTON_DELETE,
  123.     RLS_BUTTON_MODIFY,
  124.     RLS_BUTTON_CHANGE,
  125.     RLS_BUTTON_REPLACE,
  126.     RLS_BUTTON_QUIT,
  127.     RLS_BUTTON_SET,
  128.     RLS_BUTTON_REVERT,
  129.     RLS_BUTTON_SELECT,
  130.     RLS_BUTTON_LAST
  131. };
  132.  
  133. /* printing strings */
  134. enum {
  135.     RLS_PRINTING_PRINTING = 1,    /* Printing */
  136.     RLS_PRINTING_SPOOLING,        /* Spooling */
  137.     RLS_PRINTING_STOPPING,        /* Stopping print job */
  138.     RLS_PRINTING_LAST
  139. };
  140.  
  141. /* finder messages */
  142. enum {
  143.     RLS_FINDER_PREFS = 1,        /* default message for preferences file */
  144.     RLS_FINDER_LAST
  145. };
  146.  
  147. /* units of measure */
  148. enum {
  149.     RLS_UNITS_MILLIMETERS = 1,
  150.     RLS_UNITS_CENTIMETERS,
  151.     RLS_UNITS_INCHES,
  152.     RLS_UNITS_POINTS,
  153.     RLS_UNITS_LAST
  154. };
  155.  
  156. /* pictures */
  157. enum {
  158.     RLPICT_ABOUT = 128,            /* picture for about dialog */
  159.     RLPICT_LAST
  160. };
  161.  
  162. /* window definitions */
  163. enum {
  164.     RLWDEF_SYSTEM = 0,            /* standard WDEF */
  165.     RLWDEF_MOVABLE_MODAL=128,    /* movable-modal WDEF for pre-7.0 systems */
  166.     RLWDEF_FLOAT = 129,            /* floating windoid */
  167.     RLWDEF_LAST
  168. };
  169.  
  170. /* windows */
  171. enum {
  172.     RLW_CLIPBOARD = 128,            /* clipboard window */
  173.     RLW_DOCUMENT,                    /* document window */
  174.     RLW_FLOAT_DRAG_TOP,            /* floating window, drag bar on top */
  175.     RLW_FLOAT_DRAG_LEFT,            /* floating window, drag bar on left */
  176.     RLW_FLOAT_MENU = RLW_FLOAT_DRAG_TOP,    /* floating menu window */
  177.     RLW_TOOL_BAR = RLW_FLOAT_DRAG_LEFT,        /* tool bar */
  178.     RLW_LAST
  179. };
  180.  
  181. /* dialogs */
  182. enum {
  183.     RLD_ABOUT = 128,                /* about dialog */
  184.     RLD_BUSY,                        /* doing some lengthy operation */
  185.     RLD_DEBUG_MEMORY,                /* memory window */
  186.     RLD_HELP,                        /* help dialog */
  187.     RLD_FOLDER,                        /* folder selection dialog */
  188.     RLD_MULTIPLE,                    /* multiple file selection dialog */
  189.     RLD_TXSIZE,                        /* other size */
  190.     RLD_TXWRAP,                        /* word wrap */
  191.     RLD_PREFERENCES,                /* preferences */
  192.     RLD_LAST
  193. };
  194.  
  195. /* alerts */
  196. enum {
  197.     RLA_OK = 256,                    /* alert with an "OK" button */
  198.     RLA_OK_CANCEL,                    /* alert with "OK" and "Cancel" buttons */
  199.     RLA_CANCEL_OK,                    /* cancel button is the default item */
  200.     RLA_SAVE,                        /* save changes before... */
  201.     RLA_LAST
  202. };
  203.  
  204. /* dialog item templates */
  205. enum {
  206.     RLDITL_ABOUT = 128,
  207.     RLDITL_BUSY,
  208.     RLDITL_PRINTING,
  209.     RLDITL_ALERT_OK = 256,
  210.     RLDITL_ALERT_OK_CANCEL,
  211.     RLDITL_ALERT_SAVE,
  212.     RLDITL_LAST
  213. };
  214.  
  215. /* 'ICN#' resources */
  216. enum {
  217.     RLICN_APPLICATION = 128,    /* application's icon */
  218.     RLICN_DOCUMENT,                /* document file */
  219.     RLICN_STATIONARY,                /* stationary file */
  220.     RLICN_EDITION,                    /* edition file */
  221.     RLICN_PREFERENCES,            /* preferences file */
  222.     RLICN_LAST
  223. };
  224.  
  225. /* small icons */
  226. enum {
  227.     RLSICN_APPLICATION = 128,
  228.     RLSICN_DOCUMENT,
  229.     RLSICN_STATIONARY,    
  230.     RLSICN_EDITION,
  231.     RLSICN_PREFERENCES,
  232.     RLSICN_GROW,
  233.     RLSICN_LAST
  234. };
  235.  
  236. /* file references */
  237. enum {
  238.     RLFREF_APPLICATION = 128,
  239.     RLFREF_DOCUMENT,
  240.     RLFREF_STATIONARY,
  241.     RLFREF_EDITION,
  242.     RLFREF_PREFERENCES,
  243.     RLFREF_LAST
  244. };
  245.  
  246. /* bundles */
  247. enum {
  248.     RL_BNDL_APPLICATION = 128,
  249.     RL_BNDL_LAST
  250. };
  251.  
  252. /* control definitions */
  253. enum {
  254.     RLCDEF_THUMBWHEEL = 128,        /* one of JohnC's controls */
  255.     RLCDEF_LAST
  256. };
  257.  
  258. /* cursors */
  259. #define RLACUR_BUSY            (128)    /* animated busy cursors */
  260. #define RLCURS_BUSY            (128)    /* first busy cursor */
  261. #define RLCURS_BUSY_COUNT    (8)    /* number of busy cursors */
  262.  
  263. /* menu bars */
  264. #define RLMBAR                    (128)    /* application's menu bar */
  265.  
  266. /* menus */
  267. enum {
  268.     RLM_APPLE = 128,
  269.     RLM_FILE,
  270.     RLM_EDIT,
  271.     RLM_FONT,
  272.     RLM_SIZE,
  273.     RLM_STYLE,
  274.     RLM_WINDOWS,
  275.     RLM_TEXT,
  276.     RLM_DEBUG,
  277.     RLM_UNITS_POPUP,
  278.     RLM_SIZE_POPUP,
  279.     RLM_FONT_POPUP,
  280.     RLM_JUST,
  281.     RLM_JUST_POPUP,
  282.     RLM_LAST
  283. };
  284.  
  285. /* size resources */
  286. enum {
  287.     RLSIZE_DEFAULT = -1,
  288.     RLSIZE_USER,
  289.     RLSIZE_LAST
  290. };
  291.  
  292. /* version resources */
  293. enum {
  294.     RLVERS_APPLICATION = 1,
  295.     RLVERS_GROUP,
  296.     RLVERS_LAST
  297. };
  298.  
  299. /* application settings */
  300. enum {
  301.     RLAPP_SETTINGS = 128,
  302.     RLAPP_LAST
  303. };
  304.  
  305. /* notification settings */
  306. enum {
  307.     RLNMOP_BACKGROUND = 128,
  308.     RLNMOP_LAST
  309. };
  310.